package com.demo.transaction.repository.primary.hello.mapper;

import com.demo.transaction.repository.primary.hello.domain.PrimaryHello;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PrimaryHelloMapper {

    List<PrimaryHello> list();

    int count();

    @Insert("INSERT INTO hello (`value`)VALUES(#{value})")
    void insert(String value);

    @Select("select * from hello  where id = #{id}")
    PrimaryHello get(Integer id);
}
